/**
 * 
 */
package com.regedit.aplicacion.dao;

import android.content.ContentValues;
import android.net.Uri;

import com.regedit.aplicacion.models.Carro;
import com.regedit.aplicacion.provider.AplicacionProvider;

/**
 * @author pjohnson
 * 
 */
public abstract class EntityDao {

	public static final String TABLE_NAME = "Entity";
	public static final String COL_ID = "_id";
	public static final String COL_TITLE = "title";

	public static final Uri CONTENT_URI = Uri.parse("content://"
			+ AplicacionProvider.AUTHORITY + "/" + TABLE_NAME);
	public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.seguriapp.complaints";

	// Create the table
	protected static final String CREATE_TABLE = "CREATE TABLE IF NOT EXISTS "
			+ TABLE_NAME + " (" + COL_ID + " " + "INTEGER" + " PRIMARY KEY,"
			+ COL_TITLE + " " + "TEXT" + ")";

	public static ContentValues contentValuesToInsert(
			final Carro carro) {
		final ContentValues values = new ContentValues();
		values.put(COL_TITLE, carro.getMarca());
		
		return values;
	}
}
